<?php
date_default_timezone_set("PRC");   //设置时区
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "xzpf";

$conn = new mysqli($servername, $username, $password, $dbname);
if($conn->connect_error){
	die("connection_failed:".$conn->connect_error);
}

$conn->query("SET NAMES UTF8");
?>